package com.itheima.mapper;


import com.itheima.entity.Userprofile;
import com.itheima.pojo.po.IndexVisualizationPo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 用户概况(Userprofile)表数据库访问层
 *
 * @author guanhuaer
 * @since 2024-09-04 21:14:10
 */
@Mapper
public interface UserprofileMapper {
    List<Userprofile> selectUserprofileList(Userprofile userprofile);

    Userprofile selectUserprofileById(Integer id);

    List<Userprofile> selectUserprofileByUserId(Integer userId);
    List<Userprofile> selectUserprofileByProjectId( Integer[] projectIds);

    void insertUserprofile(Userprofile userprofile);

    void updateUserprofile(Userprofile userprofile);

    void deleteUserprofileById(Integer id);

    void deleteUserprofileByIds(List<Integer> ids);


    Map<String, Integer> selectVisitCount(Integer[] projectIds);

    IndexVisualizationPo selectBaseInfo(List<Integer>  projectIds);

    List<String> setleWords();
}
